OEModule\PASAPI\resources\BaseResource::getAssignment PHP Method

getAssignment() public method

public getAssignment ( ) : PasApiAssignment
return OEModule\PASAPI\models\PasApiAssignment
    public function getAssignment()
    {
        if (!$this->assignment && $this->id) {
            $finder = new PasApiAssignment();
            $this->assignment = $finder->findByResource(static::$resource_type, $this->id, static::$model_class);
        }
        return $this->assignment;
    }