for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CourseBundle\Component\CourseCopy\Resources;
use Chamilo\CourseBundle\Entity\CLpCategory;
/**
* Class LearnPathCategory.
*
* @package Chamilo\CourseBundle\Component\CourseCopy\Resources
*/
class LearnPathCategory extends Resource
{
* @var CLpCategory
public $object;
* @param int $id
* @param string $object
public function __construct(
$id,
$object
) {
parent::__construct($id, RESOURCE_LEARNPATH_CATEGORY);
$this->object = $object;
string
Chamilo\CourseBundle\Entity\CLpCategory
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..
}
* Show this resource.
public function show()
parent::show();
echo $this->object->getName();
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..