public function category(Category $category)
    {
        $this->category = $category;

        $this->category->categorise($this);
    }
public function category(Category $category)
    {
        $this->category = $category;

        $this->category->categorise($this);
    }
public function category ( Category $ category ) { $ this -> category = $ category ; $ this -> category -> categorise ( $ this ) ; }
Set a category

@param Category $category

@return void
Set a category