src/MaterializedPathBehavior.php
public function getDescendants($depth = null, $andSelf = false)
    {
        /** @var \yii\db\ActiveQuery|MaterializedPathQueryTrait $query */
        $query = $this->owner->find();
        return $query->descendantsOf($this->owner, $depth, $andSelf);
    }
public function getDescendants($depth = null, $andSelf = false)
    {
        /** @var \yii\db\ActiveQuery|MaterializedPathQueryTrait $query */
        $query = $this->owner->find();
        return $query->descendantsOf($this->owner, $depth, $andSelf);
    }
public function getDescendants ( $ depth = null , $ andSelf = false ) { /** @var \yii\db\ActiveQuery|MaterializedPathQueryTrait $query */ $ query = $ this -> owner -> find ( ) ; return $ query -> descendantsOf ( $ this -> owner , $ depth , $ andSelf ) ; }
Returns descendants as plain list.

@param int $depth = null
@param bool $andSelf = false
@return \yii\db\ActiveQuery|MaterializedPathQueryTrait
Returns descendants as plain list .