src/TypedClass.php
protected function _getByName($propName)
	{
		if (array_key_exists($propName, $this->_map)) {
			$propName = $this->_map[$propName];
		}

		if ($this->{$propName} instanceof AtomicInterface) {
			return $this->{$propName}->get();
		}

		$getter = '_get_' . $propName;
		if (method_exists($this->_calledClass, $getter)) {
			return $this->{$getter}();
		}

		return $this->{$propName};
	}
protected function _getByName($propName)
	{
		if (array_key_exists($propName, $this->_map)) {
			$propName = $this->_map[$propName];
		}

		if ($this->{$propName} instanceof AtomicInterface) {
			return $this->{$propName}->get();
		}

		$getter = '_get_' . $propName;
		if (method_exists($this->_calledClass, $getter)) {
			return $this->{$getter}();
		}

		return $this->{$propName};
	}
protected function _getByName ( $ propName ) { if ( array_key_exists ( $ propName , $ this -> _map ) ) { $ propName = $ this -> _map [ $ propName ] ; } if ( $ this -> { $ propName } instanceof AtomicInterface ) { return $ this -> { $ propName } -> get ( ) ; } $ getter = '_get_' . $ propName ; if ( method_exists ( $ this -> _calledClass , $ getter ) ) { return $ this -> { $ getter } ( ) ; } return $ this -> { $ propName } ; }
Get variable by name.

@param string $propName

@return mixed
Get variable by name .