src/Charcoal/Admin/Ui/ObjectContainerTrait.php
public function obj()
    {
        if ($this->obj === null) {
            $this->obj = $this->createOrLoadObj();

            if ($this->obj instanceof ModelInterface) {
                $this->objId = $this->obj->id();
            } else {
                $this->objId = null;
            }
        }

        return $this->obj;
    }
public function obj()
    {
        if ($this->obj === null) {
            $this->obj = $this->createOrLoadObj();

            if ($this->obj instanceof ModelInterface) {
                $this->objId = $this->obj->id();
            } else {
                $this->objId = null;
            }
        }

        return $this->obj;
    }
public function obj ( ) { if ( $ this -> obj === null ) { $ this -> obj = $ this -> createOrLoadObj ( ) ; if ( $ this -> obj instanceof ModelInterface ) { $ this -> objId = $ this -> obj -> id ( ) ; } else { $ this -> objId = null ; } } return $ this -> obj ; }
Retrieve the object.

@return ModelInterface
Retrieve the object .