src/actions/Action.php
public function getModelClass()
    {
        if (isset($this->parent)) {
            return $this->parent->getModelClass();
        }

        if (isset($this->getCollection()->first)) {
            return $this->getCollection()->first->class;
        }

        return get_class($this->getCollection()->getModel());
    }
public function getModelClass()
    {
        if (isset($this->parent)) {
            return $this->parent->getModelClass();
        }

        if (isset($this->getCollection()->first)) {
            return $this->getCollection()->first->class;
        }

        return get_class($this->getCollection()->getModel());
    }
public function getModelClass ( ) { if ( isset ( $ this -> parent ) ) { return $ this -> parent -> getModelClass ( ) ; } if ( isset ( $ this -> getCollection ( ) -> first ) ) { return $ this -> getCollection ( ) -> first -> class ; } return get_class ( $ this -> getCollection ( ) -> getModel ( ) ) ; }
Return the model class name.

@return string
Return the model class name .