public function getEntity($key)
    {
        foreach ($this->entities as $entityKey => $entityVal) {
            if ($entityKey==$key) {
                return $entityVal;
            }
        }
        return null;
    }
public function getEntity($key)
    {
        foreach ($this->entities as $entityKey => $entityVal) {
            if ($entityKey==$key) {
                return $entityVal;
            }
        }
        return null;
    }
public function getEntity ( $ key ) { foreach ( $ this -> entities as $ entityKey => $ entityVal ) { if ( $ entityKey == $ key ) { return $ entityVal ; } } return null ; }
Gets the List of entity value with particular key
@var string key
Gets the List of entity value with particular key