/** * (non-PHPdoc) * @see \MB\DashboardBundle\Model\Connector\ConnectorInterface::fillProject() */ public function fillProject(SourceProjectInterface $project, \stdClass $data, SourceGroupInterface $sourceGroup = null) { $project->setSourceId($data->id); $project->setSourceConnectorIdentifier($this->getName()); if ($sourceGroup) { $project->setSourceGroup($sourceGroup); $sourceGroup->addProject($project); } $project->setSourceTitle($data->path); $project->setSourceUrl($data->web_url); $project->setSourceDescription($data->description); $project->setSourcePath($data->path); return $project; }